/*
 * HashTable.h
 *
 *  Created on: Apr 13, 2013
 *      Author: Anthony Varghese
 */

#ifndef HASHTABLE_H_
#define HASHTABLE_H_

namespace lab9 {

class HashTable {
public:
	HashTable(const unsigned int n);
	virtual ~HashTable();
	double get( const int key );
	void add( const int key, const double v );
	static constexpr double invalid_result = -999.999;
private:
	unsigned int size;                    // size of the hash table
	HashTableEntry** entryTable; // array of pointers
	int hashf( const int key );  // hash function
};

} /* namespace lab9 */
#endif /* HASHTABLE_H_ */
